package com.ie.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ie.common.http.ResponseResult;
import com.ie.entity.OrdersEntity;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;
import java.util.Map;

public interface OrdersService extends IService<OrdersEntity> {
    ResponseResult<List<OrdersEntity>> getOrdersByUid(HttpServletRequest request,
                                                      @RequestHeader("Authorization") String token);

    ResponseResult<Map<String, Object>> submitOrder(OrdersEntity ordersEntity);
}
